import request from '@/utils/request'

// 查询实验室是否可预约列表
export function listLabReservation(query) {
  return request({
    url: '/labdata/labReservation/list',
    method: 'get',
    params: query
  })
}

// 查询实验室是否可预约详细
export function getLabReservation(dayId) {
  return request({
    url: '/labdata/labReservation/' + dayId,
    method: 'get'
  })
}

// 新增实验室是否可预约
export function addLabReservation(data) {
  return request({
    url: '/labdata/labReservation',
    method: 'post',
    data: data
  })
}

// 修改实验室是否可预约
export function updateLabReservation(data) {
  return request({
    url: '/labdata/labReservation',
    method: 'put',
    data: data
  })
}

// 删除实验室是否可预约
export function delLabReservation(dayId) {
  return request({
    url: '/labdata/labReservation/' + dayId,
    method: 'delete'
  })
}

// 导出实验室是否可预约
export function exportLabReservation(query) {
  return request({
    url: '/labdata/labReservation/export',
    method: 'get',
    params: query
  })
}

// 查询实验室是否可预约统计列表
export function listLabReservationStatistics(query) {
  return request({
    url: '/labdata/labReservation/listLabReservationStatistics',
    method: 'get',
    params: query
  })
}
